﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Vroom.Shapes
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		Ellipse _ellipse;

		public MainWindow()
		{
			InitializeComponent();
			CreateShapes();
		}

		private void CreateShapes()
		{
			_ellipse = new Ellipse();
			SolidColorBrush mySolidColorBrush = new SolidColorBrush();
			mySolidColorBrush.Color = Color.FromArgb(255, 255, 255, 0);
			_ellipse.Fill = mySolidColorBrush;
			_ellipse.StrokeThickness = 2;
			_ellipse.Stroke = Brushes.Black;
			_ellipse.Width = 40;
			_ellipse.Height = 40;
		}


		private void StartStop_Click(object sender, RoutedEventArgs e)
		{
			var isClicked = sender as Button;

			Canvas.SetTop(_ellipse, 100);
			Canvas.SetLeft(_ellipse, 100);
			MainCanvas.Children.Add(_ellipse);
		}
	}
}
